<!doctype html>
<html style="">
    <head>
        <meta charset="utf-8">
        <title>{$sec['shopname']} </title>
        <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
        <link rel="stylesheet" href="../addons/kbwdl_shequzufang/style/weui/css/weui.css"/>
        <link rel="stylesheet" href="../addons/kbwdl_shequzufang/style/weui/css/weuix.css"/>
        <script src="../addons/kbwdl_shequzufang/style/weui/js/zepto.min.js"></script>
        <script src="../addons/kbwdl_shequzufang/style/weui/js/zepto.weui.js"></script>   
        <script src="../addons/kbwdl_shequzufang/style/weui/js/swipe.js"></script>        
        <script src="../addons/kbwdl_shequzufang/style/weui/index.js?t={php echo time()}"></script>
        <script>
             window.siteinfo = {
                "uniacid": "{$_W['uniacid']}",
                "acid": "{$_W['acid']}",
                "multiid": "1",
                "version": "1.8.1",
                "siteroot": "{$_W['acid']}app/index.php",
                'method_design': '3',
                'session_id': "{$_W['session_id']}"
		  };
            // jssdk config 对象
            jssdkconfig = {php echo json_encode($_W['account']['jssdkconfig']); } || {};
            // 是否启用调试
            jssdkconfig.debug = false;
            jssdkconfig.jsApiList = [
                'checkJsApi',
                'onMenuShareTimeline',
                'onMenuShareAppMessage',
                'onMenuShareQQ',
                'onMenuShareWeibo',
                'hideMenuItems',
                'showMenuItems',
                'hideAllNonBaseMenuItem',
                'showAllNonBaseMenuItem',
                'translateVoice',
                'startRecord',
                'stopRecord',
                'onRecordEnd',
                'playVoice',
                'pauseVoice',
                'stopVoice',
                'uploadVoice',
                'downloadVoice',
                'chooseImage',
                'previewImage',
                'uploadImage',
                'downloadImage',
                'getNetworkType',
                'openLocation',
                'getLocation',
                'hideOptionMenu',
                'showOptionMenu',
                'closeWindow',
                'scanQRCode',
                'chooseWXPay',
                'openProductSpecificView',
                'addCard',
                'chooseCard',
                'openCard',
                'openAddress'
            ];
        </script>  
        <style>
            html{font-size:20px}
            @media screen and (min-width:321px) and (max-width:375px){html{font-size:20px}}
            @media screen and (min-width:376px) and (max-width:414px){html{font-size:20px}}
            @media screen and (min-width:415px) and (max-width:639px){html{font-size:20px}}
            @media screen and (min-width:640px) and (max-width:719px){html{font-size:20px}}
            @media screen and (min-width:720px) and (max-width:749px){html{font-size:22.5px}}
            @media screen and (min-width:750px) and (max-width:799px){html{font-size:23.5px}}
            @media screen and (min-width:800px){html{font-size:25px}}
            .weui-panel__hd {
                padding: 14px 15px 10px;
                color: #777;
                font-size: 16px;
                position: relative;
                font-weight: bold;
            }
            .weui-news-title{     
                font-weight: normal;
                padding:10px 0px;
                line-height: 180%;
            }
            .weui-news-medias { 
                display: flex;
                justify-content: space-between;
            }
            .weui-news-medialist img ,.weui-news-media img{   
                border-radius: 5px;
            }  
            .weui-news-list .weui-news-left{
                padding-left: 0px;
                margin-left: 0px !important;
            }
            .weui-panel__hd .weui-cell {
                padding: 0px 0px;
            }
            .weui-footer_fixed-bottom{
                position: relative;
                padding: 20px;
            }
        </style>
    </head>

    <body>
        <div style="position: fixed; left: 0 ;top:0; width:100%; height: 50px;z-index: 9999;">
            <div class="weui-header bg-blue"> 
                <div class="weui-header-left">    </div>

                <h1 class="weui-header-title f-white" >绑定手机号</h1>

                <div class="weui-header-right"> </div> 
            </div>
        </div>    

        <div class="page-hd" style="margin-top:40px;">
            <form name="myform" action="{php echo $this->createMobileUrl('binduser',array('op'=>'savepost') )}"  method='post'>        
             {if $isbind==1}   
             <div style="width:120px; margin:0 auto;">
               
                <div class="weui-avatar" style=" margin:0 auto;">
                    <img src="{$avatar}"/>
                    <span class="weui-icon-success weui-icon-safe-warn"></span>
                </div>
                <p class="page-hd-desc" style="text-align:center;">{$nickname}</p>
               
             </div>
              <p class="page-hd-desc" style="text-align:center;">当前状态：已经绑定！</p> 
            {/if}    
                <div class="weui-cells weui-cells_form">
    <div class="weui-cell">
        <div class="weui-cell__bd">
            <input name="mobile" class="weui-input" placeholder="请输入手机号码" value="{$mobile}"/>
             
        </div>
    </div>
</div> 
    
    <label for="weuiAgree" class="weui-agree">
        <input id="weuiAgree" class="weui-agree__checkbox" checked="true" type="checkbox">
    <span class="weui-agree__text">
               注意<a href="javascript:void(0);">手机号需在小程序版经纪人资料中注册过。</a>
            </span>
</label>
    
 <div class="weui-btn-area">
    <button class="weui-btn weui-btn_primary" style="background-color: #10aeff" id="sendpost">确定提交</button>
</div>
            </form>
        </div>
        <div class="weui-footer weui-footer_fixed-bottom">
            <p class="weui-footer__links">
                <a href="" class="weui-footer__link">{$sec['copyinfo']}</a>
            </p>
            <p class="weui-footer__text">Copyright &copy;<?php echo date('Y')?> .Inc</p>
        </div>

    </body>
</html>